home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
bbs
/
mhis020.zip
/
BUILD.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-12-16
|
3KB
|
118 lines
@echo off
if %1. == . goto commandLineError
if %2. == . goto noSecondParam
set MEX_INCLUDE=%2
if exist %MEX_INCLUDE%\max.mh goto maxOk
echo Can't find file: %MEX_INCLUDE%\max.mh
goto maxMhError
:noSecondParam
if exist ..\m\max.mh BUILD %1 ..\m
goto maxMhError
:maxOk
if exist %1\mexp.exe goto mexpOk
echo Can't find file: %1\mexp.exe
goto done
:mexpOk
if exist callinfo.mh goto callInfoOk
echo Can't find file: callinfo.mh
goto done
:callInfoOk
%1\mexp calljump
if errorlevel 1 goto compileError
%1\mexp calllist
if errorlevel 1 goto compileError
%1\mexp callhdr
if errorlevel 1 goto compileError
%1\mexp callindi
if errorlevel 1 goto compileError
%1\mexp calldir
if errorlevel 1 goto compileError
%1\mexp listdays
if errorlevel 1 goto compileError
%1\mexp callstat
if errorlevel 1 goto compileError
%1\mexp crithdr
if errorlevel 1 goto compileError
%1\mexp critname
if errorlevel 1 goto compileError
%1\mexp critcity
if errorlevel 1 goto compileError
%1\mexp critgkey
if errorlevel 1 goto compileError
%1\mexp critbkey
if errorlevel 1 goto compileError
%1\mexp crittask
if errorlevel 1 goto compileError
%1\mexp critdef
if errorlevel 1 goto compileError
%1\mexp critcall
if errorlevel 1 goto compileError
%1\mexp critlsec
if errorlevel 1 goto compileError
%1\mexp crithsec
if errorlevel 1 goto compileError
%1\mexp critbflg
if errorlevel 1 goto compileError
%1\mexp critgflg
if errorlevel 1 goto compileError
%1\meccap *.mec
if errorlevel 1 goto compileError
echo.
echo Compilation completed successfully.
echo.
goto done
:commandLineError
if exist ..\MEXP.EXE goto clefmexp
goto :nodefault
:clefmexp
BUILD ..
:nodefault
echo Compiles all files necessary to run MaxHistory.
echo.
echo Syntax:
echo.
echo BUILD [maximus directory] [mex include directories]
echo.
echo Where [maximus directory] is the name of the directory containing MECCAP.EXE
echo and MEXP.EXE, and [mex include directories] includes the directory containing
echo the file MAX.MH.
echo.
goto done
:maxMhError
echo Please pass the directory containing max.mh as the second parameter
echo to this batch file or type:
echo.
echo SET MEX_INCLUDE=[directory name]
echo.
echo before running this batch file, where [directory name] is the name
echo of the directory containing max.mh. Usually, this file is located
echo in a subdirectory of your main max directory called "m".
echo.
goto done
:compileError
echo.
echo Compilation errors were detected. These errors must be corrected
echo before you can use MaxHistory. This may indicate that your copy
echo of MaxHistory has been tampered with. For more information on
echo compile time errors, see section 14.3 of your Maximus documentation.
echo.
:done
if %2. == . goto end
set MEX_INCLUDE=
:end